package com.flyqiu.form.api.spi;

import com.baomidou.mybatisplus.core.MybatisConfiguration;
import com.flyqiu.form.api.FlyQiuFormContext;
import com.flyqiu.form.api.col.FlyQiuStoreColTypeMapper;
import com.flyqiu.form.api.store.FlyQiuFormStoreService;

public interface FlyQiuFormStoreInitialization extends FlyQiuStoreColTypeMapper {

    /**
     * 初始化MybatisPlus Mapper
     *
     * @param configuration mybatis配置
     */
    void initMapper(MybatisConfiguration configuration);

    /**
     * 初始化表存储
     *
     * @param context 上下文核心
     * @return {@link FlyQiuFormStoreService}
     */
    FlyQiuFormStoreService initFormStore(FlyQiuFormContext context);
}
